package com.lxq.cloud.restful.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class RestFulTestingController {

    @GetMapping("/call/a")
    public String callA(){
        RestTemplate restTemplate=new RestTemplate();
        return restTemplate.getForObject("http://localhost:1880/hello?say=DNMD",String.class);
    }
}
